/* Copyright (c) 2010 OFXKit
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#import <Foundation/Foundation.h>


@interface OFXObject : NSObject {
  NSDateFormatter* defaultOFXDateFormat;
}

@property(retain) NSDateFormatter* defaultOFXDateFormat;

/**
 * Utitility function to generate UUID's.
 * 
 * @returns An NSString with a newly generated UUID
 */
+ (NSString*)stringWithUUID;

/**
 * Override the description function to provide an appropriate string for
 * all descendants.
 *
 * @returns A descriptive string outlining the value of every member of all 
 * values.
 */
- (NSString*)description;

/**
 * Override default isEqual which only compares the memory address to evaluate
 * the value of each constituient.
 * 
 * @param object Object to compare against.
 *
 * @returns A boolean value indicating if the specified object is equal to this
 * one.
 */
- (BOOL)isEqual:(id)object;

/**
 * Generate a unique hash for this object.
 * 
 * @returns A unique hash for this object.
 */
- (NSUInteger)hash;

@end
